
export const MAP_CONFIG = {
    access_token: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI2NTFiYjAyNS03ZDk4LTRlN2EtOTRlZS0yMjljYWEyM2ZiZTIiLCJpZCI6NDI0MzgsImlhdCI6MTY1MzgwODE5NX0.cSgdL_IQcY_zSoSCNtcW1Q38MaElFgj6un5T-rAHSuE',
    // 模型地址
    title_url: '/model/OSDB_tiles/tileset.json',
    // 点云数据模型地址
    point_cloud_tile_url: '/model/las_til/tileset.json',
    // ArcGisMapServerImageryProvider
    arc_url: 'https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer',
    // UrlTemplateImageryProvider
    gd_url: 'https://webst02.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}',
    // BaiduImageryProvider
    bd_url: 'http://webst02.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&lang=zh_cn&size=1&scale=1&style=8',
    tencent_url: 'https://ss1.bdstatic.com/8bo_dTSlR1gBo1vgoIiO_jowehsv/tile/?qt=vtile&x={x}&y={y}&z={z}&styles=pl&udt=20180810&scaler=1&showtext=1',
    google_url: '',
    // PIO搜索
    search_url: '/search/v3/place/text?key=917630083be719c5966d63cb9712d560&city=500000&page=1&offset=25&output=json&keywords='
}

// 测试铁塔链接数据
export const testLineConfig = [
    {
        id: 't1',
        longLati: [106.55459323817139, 29.69434811717193],
        name: 'modal1',
        rx: -120, // 铁塔的水平角度
        ry: 90,
        rz: 90,
        height: 400
    },
    {
        id: 't2',
        longLati: [106.53882920679247, 29.68016385604011],
        name: 'modal2',
        rx: -135,
        ry: 90,
        rz: 90,
        height: 400
    }
]

// 工具配置
// 快捷工具
export const toolBar = [{
    id: 1,
    label: '测距',
    icon: 'icon-map-ruler',
    checked: false
}, {
    id: 2,
    label: '测面积',
    icon: 'icon-area2',
    checked: false
}, {
    id: 3,
    label: '清除所有',
    icon: 'icon-qingchu',
    checked: false
}]
// 全局正则匹配
export const GLOBAL_REG = {
    position: '/^[-\+]?\d+(\.\d+)\,[-\+]?\d+(\.\d+)$/' // 坐标正则
}